package top.rainf.service;

import top.rainf.domain.vo.BoardMessage;

import java.util.List;

/**
 * @author 星环
 * @date null
 * @description 公告服务接口
 */
public interface IBoardMessageService {

    List<BoardMessage> selectAll();

    BoardMessage readOne(int id);

    boolean deleteOneById(int id);

    boolean deleteAll(List<Integer> idList);

    boolean updateById(BoardMessage boardMessage);

    BoardMessage prevOne(int id);

    BoardMessage nextOne(int id);

    List<BoardMessage> selectRecentN(int num);

    List<BoardMessage> selectPage(int numPerPage, int pageNum);

    List<String> getPageListStr(int recordPerPage,int pageNum);
}
